<?php $this->renderPartial('_tabs'); ?>
<div class="grid_16">
	<div class="main-title">
		<h1>Manage Cpd Target</h1>
		<span class="controls">
			<a id="editCpd" class="link-button with-icon" href="<?php echo $this->createUrl('/cpd/cpdTargetArragement/create');   ?>">
				<img src="/images/icons/fugue/book--pencil.png" />
				Eidt CPD Hours Target
			</a>
		</span>
		<div class="clear"></div>
	</div>
	<div>
		<?php
		$this->widget('zii.widgets.grid.CGridView', array(
			'dataProvider' => $model->search(),
//			'filter' => $model,
			'columns' => array(
//				'cpd_target_id',
				array(
					'header' => 'CPD Classification',
					'value' => '$data->getClassificationCodeAndName($data->cpd_classification_id)',
				),
//				'cpd_classification_id',
				'credit_hour',
				array(
					'class' => 'CButtonColumn',
					'template' => '{edit}{delete}',
					'buttons' => array(
						'edit' => array(
							'label' => 'Edit',
							'imageUrl'=>'/images/icons/fugue/pencil.png',
							'url' => '$this->grid->controller->createUrl("/cpd/cpdTargetArragement/create")',
						),
						'delete' => array(
							'label' => 'Delete',
						)
					)
				),
			),
		));
		?>
		</di>
	</div>
</div>